package com.geline.easytrans.enums;

import com.geline.easytrans.annotation.DictType;
import com.geline.easytrans.dict.IDict;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 是否状态(Y/N)
 * @author: mengxin
 * @date: 2022/9/1 16:10
 */
@DictType(value = "sys_yes_no", label = "是否状态")
@AllArgsConstructor
@Getter
public enum SysYesNoEnum implements IDict {
    YES("Y", "是"),
    NO("N", "否");

    private String code;
    private String desc;

    @Override
    public String getLabel() {
        return desc;
    }

    @Override
    public Object getValue() {
        return code;
    }
}
